package com.xyoto.community.enums;

public enum FileEnum implements Code {


    /** 文件上传状态码枚举 */
    FILE_UPLOAD_FAIL(1100, "图片文件上传失败"),
    FILE_UPDATE_FAIL(1101, "图片文件修改失败"),
    FILE_DELETE_FAIL(1102, "图片文件删除失败"),
    FILE_NOT_EXIST(1103, "图片文件不存在"),
    FILE_IS_NULL(1104, "图片文件为空"),
    FILE_SIZE_OVERFLOW(1105, "图片文件过大"),
    AVATAR_SAVE_ERROR(1106, "数据保存到数据库错误"),
    PICTURE_IS_ILLEGAL(1107, "图片内容违法违规"),
    PICTURE_TYPE_NOT_EXIST(1108, "该类别的图片不存在"),
    PICTURE_GROUP_IS_ILLEGAL(1109, "非法的图片组id"),
    PICTURE_DELETED(1110, "图片已删除"),
    ;


    private int code;

    private String msg;

    FileEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code ;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
